package fr.umlv.m2.jee.pmlv.persistence.subject;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@SuppressWarnings("serial")
@Entity
@Table(name="Subject__Theme")
public class SubjectTheme implements Serializable {
	
	@Id
	@Column(name="subjectTheme_id")
	private int id;

	@OneToOne
	@JoinColumn(name="subject_id")
	private Subject subject;
	
	@Column(name="subjectTheme_typeTheme")
	private TypeTheme typeTheme;
	
	@Column(name="subjectTheme_percent")
	private int percent;

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setTypeTheme(TypeTheme typeTheme) {
		this.typeTheme = typeTheme;
	}

	public TypeTheme getTypeTheme() {
		return typeTheme;
	}

	public void setPercent(int percent) {
		this.percent = percent;
	}

	public int getPercent() {
		return percent;
	}


}
